package com.mipo.designpattern.factorypattern.abstractfactory.rolesresponsibilities;

public class AaMain {
	public static void main(String[] args) {
		AbstractFactory factory1 = new ConcreteFactoryA();
		AbstractProductA productA1 = factory1.createProductA();
		AbstractProductB productB1 = factory1.createProductB();
		productA1.productAMethod();
		productB1.productBMethod();
		
		AbstractFactory factory2 = new ConcreteFactoryB();
		AbstractProductA productA2 = factory2.createProductA();
		AbstractProductB productB2 = factory2.createProductB();
		productA2.productAMethod();
		productB2.productBMethod();
	}
}
